package caiziyou.com.designpattern.proxy.staticproxy;

public class TeacherDaoProxy implements ITeacherDao {

	private ITeacherDao target;

	public TeacherDaoProxy(ITeacherDao target) {
		super();
		this.target = target;
	}

	@Override
	public void teach() {
		System.out.println("开始代理");
		target.teach();
		System.out.println("提交");
	}

}
